<?php
include("inc/global.inc");
include("inc/page.php");
$url="list.php";
$thepage=$_GET['page']?$_GET['page']:1;
$maxpage=20;
$l_rs=@mysql_query("select * from news_type where id='".$_GET['id']."'");
$l_row=@mysql_fetch_array($l_rs);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?=$l_row[type_name]?>招标-最新<?=$l_row[type_name]?>招标-<?=$l_row[type_name]?>招标信息-找招标信息上三帝招标网</title>
<meta name="description" content="<?=$l_row[type_name]?>招标-最新<?=$l_row[type_name]?>招标-<?=$l_row[type_name]?>招标信息，三帝招标网是一个专业招标网站，提供最新、权威、准确、及时的招标信息，是您值得信赖的招标网，三帝招标网实时更新国内公共建设项目招标、工程招标、采购招标、企事业单位招标信息，三帝招标网一站式服务，让您足不出户获取招标信息。" />
<meta name="keywords" content="<?=$l_row[type_name]?>招标-最新<?=$l_row[type_name]?>招标-<?=$l_row[type_name]?>招标信息，招标网，三帝招标网，工程招标，项目招标，采购招标，招标信息，最新招标信息，2010年最新招标信息" />
<link href="/css/body.css" rel="stylesheet" type="text/css" />
<link href="/css/head.css" rel="stylesheet" type="text/css" />
<link href="/css/foot.css" rel="stylesheet" type="text/css" />
<link href="/css/list.css" rel="stylesheet" type="text/css" />
</head>
<body>
<?php
include("inc/head_top.php");
?>
<div id="mian" class="topside6 side">
<div class="title1">当前位置: <a href="/">三帝招标</a> >> <?=$l_row[type_name]?></div>
<div class="onl"></div>
</div>
<div class="w960 topside20 side">
<script type="text/javascript">/*960*90，创建于2011-3-9*/ var cpro_id = 'u403357';</script><script src="http://cpro.baidu.com/cpro/ui/c.js" type="text/javascript"></script>
<div class="onl"></div>
</div>

<div id="mian" class="topside6">
<div class="rightbox downside6">
  <div class="rightmain downside6">
    <div class="title size14 b">最新招标项目</div>
    <div class="RtInfo4">
      <div class="div_3">
        <ul>
<?php
$rs=@mysql_query("select id,news_title,news_time from news where type_id=1 and n_sh=1 order by news_time desc,id desc limit 10");
while($row=@mysql_fetch_array($rs)){
?>
<li><a href="/zhaobiao/<?=$row['id']?>.html" target="_blank"  class="link_1"><?=mb_substr($row[news_title],0,13,'utf-8')?></a>&nbsp;<?=date("Y-m-d",strtotime($row[news_time]))?></li><?php }?>
                  </ul>
      </div>
    </div>
    <div class="onl"></div>
  </div>
  
  <div class="rightmain side">
<script type="text/javascript"><!--
google_ad_client = "pub-2924453545159453";
/* 250x250, 创建于 11-3-28 */
google_ad_slot = "2236364990";
google_ad_width = 250;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
  
  </div>
<div class="leftmain content sideyellow1">
  <div class="biaoti">
<div class="title3 size14"><?=$l_row[type_name]?>列表</div>
  <ul class="newslist">
<?php
	 $rs=@mysql_query("select id,news_time,news_title from news where type_id2='$_GET[id]' and n_sh=1 order by news_time desc,id desc limit ".($thepage-1)*$maxpage.",$maxpage");
	 while($row=@mysql_fetch_array($rs)){
	 ?>
     <li><span><?=date("Y-m-d",strtotime($row[news_time]))?></span><a href="/zhaobiao/<?=$row['id']?>.html" target="_blank"><?=mb_substr($row[news_title],0,30,'utf-8')?></a></li>
<?php }
$rs2=@mysql_query("select count(id) from news where type_id2='$_GET[id]' and n_sh=1");
$totalrecord=@mysql_result($rs2,0); 
$totalpage=ceil($totalrecord/$maxpage);
@mysql_free_result($rs2);
?>
  </ul>
<div class="page">
<div class="pageleft">
<ul>
<?php pages($thepage,$totalpage,$maxpage,5);?>
</ul>
</div>
<div class="pageright">
<form name="pageform" method="post" action="" onSubmit="return onCheckPage()"> 
共<?=$totalpage?>页　到
<input type="text" name="page" class="input-txt" size="5" maxlength="5">页
<input type="submit" value="确定" class="but">
</form>
<script language="javascript"> 
function onCheckPage(){
var page = parseInt(document.pageform.page.value); 
if(isNaN(page)){
alert("请输入数字(1,<?=$totalpage?>)");
return false; 
}
if(page<=0){
page =1; 
}
if(page ><?=$totalpage?>){
page=<?=$totalpage?>;
}
if(page>1){
document.pageform.action = "/zb/<?=$l_row[type_name]?>-<?=$_GET[id]?>/"+page+".html"; 
}else{
document.pageform.action = "/zb/<?=$l_row[type_name]?>-<?=$_GET[id]?>/1.html"; 
}
return true;
}
</script>
  </div>
<div class="onl"></div>
</div>
  </div>
  </div>
<div class="onl"></div>
</div>

<div class="w960 topside20 downside20 side">
<script type="text/javascript">/*960*90，创建于2011-3-9*/ var cpro_id = 'u403357';</script><script src="http://cpro.baidu.com/cpro/ui/c.js" type="text/javascript"></script>
<div class="onl"></div>
</div>

<?php
include("inc/foot.php");
?>
</BODY>
</HTML>



<script type="text/javascript">/*120*270，创建于2011-3-23*/ var cpro_id = 'u419785';</script><script src="http://cpro.baidu.com/cpro/ui/f.js" type="text/javascript"></script>